package scoder.pizza;

import scoder.ingredient.Cheese;
import scoder.ingredient.Dough;
import scoder.ingredient.Veggies;

public abstract class Pizza {
    String name;
    Dough dough;
    Cheese cheese;
    Veggies[] veggies;

    public abstract void prepare();

    public void bake() {
        System.out.println("烘烤：大火烤90分钟");
    }

    public void cut() {
        System.out.println("切片：切成扇形");
    }

    public void box() {
        System.out.println("装盒：使用经典包装");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("name:").append(name);
        return sb.toString();
    }
}
